//
//  Account.m
//  Dating
//
//  Created by Denzola on 15/5/11.
//  Copyright (c) 2015年 DM. All rights reserved.
//

#import "UserInfo.h"

@implementation UserInfo



-(void)encodeWithCoder:(NSCoder *)encoder
{
    
    
    [encoder encodeObject:_inviteCode forKey:@"inviteCode"];
    
    [encoder encodeObject:_registerDate forKey:@"registerDate"];
    
    [encoder encodeObject:_sumIntegralPoint forKey:@"sumIntegralPoint"];
    
    [encoder encodeObject:_token forKey:@"token"];
    
    [encoder encodeObject:_updateDate forKey:@"updateDate"];
    
    [encoder encodeObject:_userHeadId forKey:@"userHeadId"];
    
    [encoder encodeObject:_userId forKey:@"userId"];
    
    [encoder encodeObject:_userName forKey:@"userName"];
    
    [encoder encodeObject:_userPassword forKey:@"userPassword"];
    
    [encoder encodeObject:_userPhone forKey:@"userPhone"];
    
    [encoder encodeObject:_userQrCodeId forKey:@"userQrCodeId"];
    
    [encoder encodeObject:_userType forKey:@"userType"];
    


}

-(id)initWithCoder:(NSCoder *)encoder
{

    if (self = [super init]) {
       
        self.inviteCode =[encoder decodeObjectForKey:@"inviteCode"];

        self.registerDate =[encoder decodeObjectForKey:@"registerDate"];
        
        self.sumIntegralPoint =[encoder decodeObjectForKey:@"sumIntegralPoint"];
        
        self.token =[encoder decodeObjectForKey:@"token"];
        
        self.updateDate =[encoder decodeObjectForKey:@"updateDate"];
        
        self.userHeadId =[encoder decodeObjectForKey:@"userHeadId"];
        
        self.userId =[encoder decodeObjectForKey:@"userId"];
        
        self.userName =[encoder decodeObjectForKey:@"userName"];
        
        self.userPassword =[encoder decodeObjectForKey:@"userPassword"];
        
        self.userPhone =[encoder decodeObjectForKey:@"userPhone"];
        
        self.userQrCodeId =[encoder decodeObjectForKey:@"userQrCodeId"];
        
        self.userType =[encoder decodeObjectForKey:@"userType"];
        

    }
    
    return self;

}

@end
